How to find factors by division method